cmake_minimum_required(VERSION 3.5.0)
project( mono)

set(CMAKE_CXX_STANDARD 17)

file(GLOB local_src *.cpp)
file(GLOB local_header *.h)

add_executable(main main.cpp ${local_src} ${local_header})


if(WIN32)
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_SOURCE_DIR}/include/mono-2.0)
target_link_directories(main PRIVATE ${CMAKE_SOURCE_DIR}/lib)
target_link_libraries(main PRIVATE libmono-static-sgen.lib mono-2.0-sgen.lib Ws2_32.lib)
endif()

if(UNIX)
target_link_libraries(main PUBLIC mono-2.0)
target_include_directories(main PUBLIC /usr/include/mono-2.0)
endif()